/*
 * 国家生态环境科技成果转化综合服务平台 公共样式文件
 * @author: zhuzl<me@zhuzhilong.com>
 * @date: 2024-06-10 12:00:00
 */

/* 公共样式 */
:root {
  --primary-color: #158CE5;
  --primary-color-dark: #0457AA;
  --text-color-dark: #333;
  --text-color-normal:#666;
  --text-color-light: #999;
}
body {
  font-family: "PingFang SC","Helvetica Neue",Helvetica,"Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
  font-size: 14px;
}
a, a:hover {
  text-decoration: none;
}
img {
  max-width: 100%;
  object-fit: cover;
}
.container {
  max-width: 1280px;
}

.text-truncate-line2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.text-truncate-line3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
@font-face{
  font-family: "PangMenZhengDao";
  src: url('../fonts/PangMenZhengDaoBiaoTiTi.ttf')
}
.position-relative {
  position: relative;
}
.position-absolute {
  position: absolute;
}

.article-body-wrap p {
  font-size: 18px!important;
  line-height: 2em!important; 
  text-indent: 2em!important; 
  margin-bottom: 20px!important;
}
.article-body-wrap table {
  width: 100%;
}
.article-body-wrap table thead, .article-body-wrap table .firstRow {
  background: #F2F3F5;
}
.article-body-wrap table td {
  border: 1px solid  #E5E6EB;
  padding: 4px 8px;
}
.breadcrumb-item a {
  font-size: 16px!important;
}

.font-weight-600 {
  font-weight: bold!important;
}

.common-header {
  position: relative;
  height:468px;
  z-index: 2;
}

.common-top-wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.42) 100%);
  backdrop-filter: blur(10px);
  height: 175px;
  position: relative;
  z-index: 90;
}
.common-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.common-top {
  display: flex;
  justify-content: space-between;
  align-items:self-end;
  padding: 24px 0 16px 0;
}
.common-logo {
  width: 537px;
  margin-right: 40px;
}
.common-logo img {
  width: 100%;
}

/* start of search */
.common-search {
  width: 384px;
}
.common-search .input-group {
  border:2px solid #016BB6;
}
.common-search .form-control {
  border: none;
  background-color: transparent;
  color: var(--primary-color-dark);
  font-size: 16px;
  line-height: 24px;
}
.common-search .form-control::placeholder {
  color: var(--primary-color-dark);
  font-size: 16px;
}
.common-search .form-control:active,.common-search .form-control:focus {
  outline: none;
  box-shadow: none;
}
.common-search .common-search-submit {
  border: none;
  width: 40px;
  height: 40px;
  background-color: transparent;
}
.common-search-submit i {
  color:var(--primary-color-dark);
  font-size:26px;
}

.search-hot-label {
  color: #2F6B98;
  font-size: 14px;
  line-height: 24px;
}
.search-hot-items {
  font-size: 0;
}
.search-hot-items a {
  color: #fff;
  background: rgba(21, 140, 229, 0.60);
  font-size:12px;
  display: inline-block;
  padding: 3px 7px;
  margin: 0 3px;
}
.search-hot-items a:hover{
  background-color: var(--primary-color-dark);
}

/* end of search */
.languages-wrap {
  position: absolute;
  right: 10px;
  top: 10px;
  color:var(--text-color-light);
}
.languages-wrap a {
  font-size:12px;
  color:#2F6B98;
  margin: 0 5px;
}
.common-login a{
  background-color: var(--primary-color);
  border-radius: 0;
  padding: 10px 16px;
  font-size:16px;
  color:#fff;
}

/* start of nav */
.common-nav-mobile-enter {
  display: none;
  color:var(--text-color-light);
  width: 50px;
  height: 50px;
  cursor: pointer;
}
.common-nav-mobile-enter span {
  width: 22px;
  height: 30px;
  display: block;
  position: relative;
}
.common-nav-mobile-enter span b {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-color-normal);
  position: absolute;
  left: 0;
  top: calc((100% - 4px) / 2);
  transition: all .3s;
}
.common-nav-mobile-enter span b:nth-child(1) { transform: translateY(6px) rotate(0deg);}
.common-nav-mobile-enter span b:nth-child(3) { transform: translateY(-6px) rotate(0deg);}
.common-nav-mobile-enter.active b:nth-child(1) { transform: translateY(0) rotate(45deg);}
.common-nav-mobile-enter.active b:nth-child(3) { transform: translateY(0) rotate(-45deg);}
.common-nav-mobile-enter.active b:nth-child(2) { opacity: 0;}
.common-nav {
  transition: height 0.3s ease-in-out;
}
.common-nav .nav {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0;
}
.common-nav .nav a {
  color:var(--primary-color-dark);
  font-size:18px;
  text-decoration: none;

}
.common-nav .nav-link {
  position: relative;
  padding: 12px;
  min-width: 80px;
  text-align: center;
}
.common-nav .nav-link:after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background-color: var(--primary-color-dark);
  position: absolute;
  bottom: 0px;
  left: 0;
  transition: width 0.3s ease-in-out;
}
.common-nav .nav-link.active:after, .common-nav .nav .nav-link:hover:after {
  width: 100%;
}

.nav-dropdown{
  position: absolute;
  left: 50%;
  top: 100%;
  width: 100%;
  min-width: 152px;
  transform: translateX(-50%);
  height: auto;
  font-size: 16px;
  color: var(--text-color-dark);
  z-index: 2;
  box-shadow: 0px 0px 16px rgba(169,169,169,0.18);
  padding-top: 0;
  display: none;
}
.nav-dropdown ul{
  list-style: none;
  text-align: center;
  background: #FFFFFF;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.07);
  padding: 10px 0;
}
.common-nav .nav-dropdown ul > li > a {
  position: relative;
  display: block;
  font-size: 16px;
  color: var(--text-color-dark);
  line-height: 2;
  padding: 10px 15px;
  white-space: nowrap;
  z-index: 1;
  transition: all 1s;
}
.common-nav .nav-dropdown ul > li > a em {
  font-size: 12px;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  /* vertical-align: middle; */
}
.nav-dropdown ul > li > a:hover{
  color: var(--primary-color-dark);
}
.common-nav .nav-dropdown ul > li > a:hover em {
  margin-left: 10px;
  color: var(--primary-color-dark);
}
/* end of nav */

/* start of footer */
.common-footer {
  background: #1680CE;
}
.footer-links {
  border-top: 1px solid #EFF8FF;
  background: linear-gradient(0deg, #EFF8FF 0%, #EFF8FF 100%), #46ACF7;
}
.link-group-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.link-group-wrap .link-list-wrap {
  padding: 24px 24px 24px 24px;
  position: absolute;
  bottom: 50px;
  z-index: 10;
  background-color: #0457AACC;
  display: none;
}
.link-group-wrap .link-list {
  padding: 0 16px;
  height: 184px;
  overflow-y: scroll;
}
.link-group-wrap .link-list::-webkit-scrollbar {
  width: 5px;
}
.link-group-wrap .link-list::-webkit-scrollbar-thumb {
  background: #158CE5;
  margin-right: 5px;
  padding: 0 10px;
}
.link-group-wrap .link-list a {
   color: #A5D2FF;
   font-size: 16px;
   line-height: 22px;
   margin: 12px 0;
}
.link-group-wrap .link-list a:hover {
  text-decoration: underline;
  color: #fff;
}
.footer-links .link-group {
  margin: 0 50px;
  padding: 15px 50px;
  cursor: pointer;
}
.footer-links .link-group h4 {
  font-size:14px;
  color:var(--primary-color-dark);
  vertical-align: middle;
  margin-bottom: 0;
}
.footer-links .link-group h4:hover {
  color: #158CE5;
}
.footer-links .link-group h4 em {
  margin-right: 10px;
}

.footer-nav-wrap {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
}
.footer-nav-wrap .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  color:rgba(255, 255, 255, 0.80);
}
.footer-nav-wrap .container a {
  color:rgba(255, 255, 255, 0.80);
}
.footer-nav-wrap .container a:hover {
  background-color: rgba(4, 87, 170, 0.70);
}
.footer-contact-info-item {
  display: flex;
  margin-bottom: 10px;
}
.footer-nav-wrap .container .footer-nav-item:first-of-type{
  width: 326px;
}
.footer-nav-wrap .container .footer-topic-links{
  width: 690px;
}
.footer-nav-wrap .container .footer-quick-links-and-qrcode{
  width: 70px;
}
.footer-contact-info-item dt, .footer-contact-info-item dd{ display: inline-block;}
.footer-contact-info-item dt {
  font-size:16px;
  font-weight: normal;
}
.footer-contact-info-item dt em {
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
}
.footer-contact-info-item dd {
  padding: 2px 4px;
  margin-bottom: 0px;
  flex: 1;
  border-radius: 2px;
  border: 1px solid rgba(232, 235, 243, 0.10);
  background: rgba(242, 243, 245, 0.05);

}

.footer-topic-wrap {
  display: flex;
}
.footer-nav-wrap .split {
  width: 2px;
  height: 70px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.10);
}
.footer-topic-wrap .topic-label {
  font-size: 30px;
  font-weight: normal;
  width: 62px;
  margin-right: 5px;
  line-height: 38px;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  width: 620px;
  align-items: center;
}
.quick-links {
  width: 176px;
  margin-left: 0;
  padding-left: 2px;
  padding-right: 2px;
}
.quick-links.row .col-6, .quick-links.row .col-12 {
  padding-left: 2px;
  padding-right: 2px;
}
.topic-links a {
  display: flex;
  width: 120px;
  height: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px;
  justify-content: center;
  align-items: center;
  border-radius: 51px;
  border: 1px solid rgba(255, 255, 255, 0.50);
  font-size: 14px;
  background-color: #F2F3F50D;
}

.footer-quick-links-and-qrcode {
  display: flex;
  justify-content: space-between;
}
.quick-links-label {
  font-size:30px;
  line-height: 38px;
  font-weight: normal;
  width: 62px;
  margin-right: 0px;
}

.footer-quick-links {
  display: flex;
  align-items: center;
}
.quick-links a {
  display: block;
  margin: 2px 0;
  display: block;
  font-size: 14px;
  text-align: center;
  padding: 2px 0px;
  border-radius: 2px;
  border: 1px solid rgba(232, 235, 243, 0.10);
  background: rgba(242, 243, 245, 0.05);
}

.qrcode-box {
  width: 70px;
  height: 95px;
  border:solid 1px rgba(255, 255, 255, 0.80);
  text-align: center;
  font-size:12px;
  line-height: 25px;
}
.qrcode-box img {
  width: 100%;
}
.qrcode-box p {
  margin-bottom: 0;
}


.footer-copyright {
  text-align: center;
  font-size: 12px;
  line-height: 36px;
  color:rgba(255, 255, 255, 0.80);
  padding: 20px 10px;
}
.footer-copyright p {
  margin-bottom: 0
}
.footer-copyright a{
  font-size: inherit;
  color:inherit;
}
.footer-copyright span.split {
  margin: 0 25px;
}
.icon-gongan {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  background: url("../img/icon-gongan.png") no-repeat center center;
  background-size: contain;
  margin-right: 5px;
}


  /* end of footer */

  /* start of pagination */
  .common-page-nav {
    padding: 40px 0;
  }
  .common-page-nav ul {
    margin-bottom: 0;
  }
  .common-page-nav .ceettIcon {
    font-size: inherit;
  }
  .common-page-nav .page-item {
    margin: 0 .5rem;
  }
  .common-page-nav .page-item.active {
    margin: 0 .5rem;
    background-color: var(--primary-color)
  }
  .common-page-nav .page-link {
    border:none;
    color:var(--text-color-normal);
  }
  .page-item:first-child .page-link, .page-item:last-child .page-link {
    border-radius: 0;
  }
  .common-page-nav .disabled .page-link {
    pointer-events: none;
    color: #E8E8E8;
  }
  /* end of pagination */

  /* 一些工具样式 */
.overflow-hide {
  overflow: hidden;
  position: relative;
  z-index: 0
}

.scale-img .bg-img {
  transition: all 0.5s ease-in-out;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0
}

.scale-img:hover .bg-img {
  transform: scale(1.05);
}

.scale-img img {
  transition: all 0.5s ease;
}

.scale-img:hover img {
  transform: scale(1.05);
}

.scale-img:hover img.no-scale-img {
  transform: scale(1);
}
.bg-img img{
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
}
.live-item .bg-img {
  display: flex;
  align-items: center;
  background-color: #eee;
  height: 100%;
}
.live-item .bg-img img {
  height: auto;
  position: static;
}

.common-login .header-user-info a {
  background-color: #fff;
  color: #333;
  padding: 8px 16px;
  font-size: 14px;
}
.common-login .header-user-info a:hover {
  background-color: #e8e8e8;
}

.header-user-info {
  cursor: pointer;
  padding: 6px 0;
}
.header-user-info .avatar-wrap {
  position: relative;
}
.header-user-info .avatar-wrap .message {
  display: none;
  position: absolute;
  top: -8px;
  right: 0px;
  color: #fff;
  background-color: red;
  border-radius: 40%;
  padding: 2px 7px;
  font-size: 10px;
}
.header-user-info .user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-right: 8px;
}
.header-user-info .dropdown-toggle::after {
  display: none;
}
.header-user-info .ci-arrow-right {
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  color:#666;
  font-size:12px;
  transition: all 0.3s;
  display: inline-block;
  transform: rotate(90deg) scale(0.8);
}
.header-user-info .dropdown.show .ci-arrow-right{
  transform: rotate(270deg) scale(0.8);
}

.common-body {
  min-height: calc(100vh - 979px);
  z-index: 1;
}
.common-nav-mobile-active .fixed-side-nav {
  display: none;
}

.overflow-x-scroll {
  height: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.overflow-x-scroll::-webkit-scrollbar {
  display: none;
}

@media screen and (max-width: 1420px) {
  .footer-quick-links {
    display: none;
  }
  .footer-nav-wrap .qrcode-box {
    margin-left: 0;
  }
}
@media screen and (max-width: 1200px) {
  .footer-quick-links-and-qrcode,.common-search {
    display: none;
  }
  .footer-nav-wrap .container .split:nth-last-child(2) {
    display: none;
  }
}

@media screen and (max-width: 1100px) {
  .footer-nav-wrap .split, .footer-topic-links,.footer-links,.common-login,.languages-wrap {
    display: none;
  }
  .footer-nav-wrap .container {
    justify-content: center;
  }
  .common-header {
    /* z-index 用于避免移动端菜单区域的被内容被遮挡 */
    z-index: 2;
  }
  .common-nav-mobile-enter {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .common-top {
    align-items: center;
  }
  .common-logo {
    width: 60%;
  }
  .common-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    background-color: rgba(255,255,255,1);
    z-index: 1;
    box-shadow: 0px 0px 16px rgba(169,169,169,0.18);
    padding: 0;
    display: none;
    /* height: 0; */
    /* overflow: hidden; */
  }
  .common-nav .nav-link {
    width: 100%;
    padding:0;
    position:relative;
    /* border-bottom: solid 1px #dedede; */
  }
  .common-nav .nav-link > a {
    display: block;
    padding: 10px;
    text-align: left;
    border-bottom: solid 1px #dedede;
  }
  .common-nav .nav-link.dropdown::before {
    content: "\e6a0";
    font-family: "ceettIcon" !important;
    font-size: 12px;
    color: var(--primary-color-dark);
    position: absolute;
    right: 10px;
    top: 12px;
    left: auto;
    transition: all .3s;
    transform: rotate(90deg);
    pointer-events: none;
  }
  .common-nav .dropdown.cur::before {
    transform: rotate(270deg);
  }
  .nav-dropdown  {
    position: relative;
    transform: translateX(0);
    box-shadow:none;
    left: 0;
  }
  .nav-dropdown ul {
    border-radius: 0 0 10px 10px;
  }
  .common-nav .nav a {
    font-size:14px;
    color:var(--text-color-dark);
  }
  .common-nav .nav-link.active:after, .common-nav .nav-link:hover:after {
    width: 0;
    display: none;
  }
  .common-nav .nav-link.active > a{
    color:var(--primary-color-dark);
  }
  .common-top-wrap {
    height: auto
  }
  .footer-copyright {
    background-color: #036ad1;
    line-height: 1.5;
  }
  .footer-copyright span.split {
    margin: 0 5px;
  }
}

@media screen and (max-width: 800px) {
  .breadcrumb-item a {
    font-size: 12px!important;
    line-height: 16px;
  }
  .common-logo {
    width: 80%;
  }
  .common-nav-mobile-enter em {
    font-size: 36px;
  }
  .common-page-nav .page-item {
    margin: 1px;
  }
  .common-page-nav .page-link {
    padding: 0.5rem;
  }
  .overflow-x-scroll .nav {
    flex-direction: column;
    height: 100%;
  }
  .article-body-wrap p {
    font-size: 16px!important;
    text-indent: unset!important;
  }
}
